package com.xvjialing.lytech.weatherreport.utils;

import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

/**
 * jpa分页工具类
 */
public class PageableUtils {

    public static Pageable getPageable(Integer page){
        Sort sort=new Sort(Sort.Direction.ASC,"id");
        return new PageRequest(page,15,sort);
    }
}
